Basic materials stocks were trading with gains, with the S&P BSE Basic Materials index increasing 19.86 points or 0.52% at 3853.82 at 09:48 IST.